<template>
  <div class="titles">
    <div class="left-top-tite">
      <div class="left-top-tite-icon"></div>
      <div class="left-top-tite-text">
        <div class="text-left-icon text-icon">
          <img src="@/assets/img/sanjiao.png" alt="" />
        </div>
        <div class="text">{{ name }}</div>
        <div class="text-right-icon text-icon">
          <img src="@/assets/img/sanjiao.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "titles",
  props: {
    name: {
      type: String,
      default: "标题",
    },
  },
  data() {
    return {};
  },
  created() {},
  computed: {},
  components: {},
  mounted() {},
  methods: {},
  watch: {},
};
</script>
<style lang="scss" scoped>
.titles {
  height: 100%;
  .left-top-tite {
    height: 36px;
    line-height: 36px;
    display: flex;
    .left-top-tite-icon {
      width: 4px;
      height: 36px;
      background: #1977e5;
      margin-right: 4px;
    }
    .left-top-tite-text {
      flex: 1;
      background: rgba(21, 86, 162, 0.3);
      display: flex;
      justify-content: center;
      align-content: center;
      .text-icon {
        width: 10px;
        height: 10px;
        img {
          width: 100%;
          height: 100%;
          vertical-align: middle;
        }
      }
      .text-left-icon {
      }
      .text-right-icon {
        transform: scale(-1, 1);
      }
      .text {
        font-family: PingFang SC, PingFang SC;
        font-weight: 500;
        font-size: 20px;
        color: #d9f0ff;
        text-shadow: 0px 0px 10px #0091ff, 0px 0px 4px #0091ff;
        text-align: center;
        font-style: normal;
        margin: 0 16px;
        background-image: url("@/assets/img/bg-textImg.png");
        background-size: 100% 100%;
      }
    }
  }
}
</style>
